import Vue from 'vue'
import Router from 'vue-router'
import index from '@/pages/index'
import study_list from '@/pages/Alldata'
import ranks from "@/pages/ranks"
import join from "@/pages/join"
import gift from '../pages/gift_list'
import login from '../pages/login'
import study_detail from '../pages/study_detail'
import LessonShare from '@/pages/StudentLessonShare'
import shopcar from '../pages/shopcar'
import changerecord from '@/pages/changerecord'
Vue.use(Router)

 const  routes =[
    {
      path: '/',
      name: 'login',
      component: login
      
    },
    {
      path: '/study_list',
      name: 'study_list',
      component:  study_list
      
    },
    {
      path: '/ranks',
      name: 'ranks',
      component: ranks
      
    },
    {
      path: '/index',
      name: 'index',
      component: index
      
    },
    {
      path: '/study_detail',
      name: 'study_detail',
      component: study_detail
    },
    {
      path: '/join',
      name: 'join',
      component:join
    },
    {
      path: '/Share',
      name: 'LessonShare',
      meta:{index:3},
      component: LessonShare
    },
    {
      path: '/gift_list',
      name: 'gift_list',
      meta:{index:3},
      component: gift
    },
    {
      path: '/shopcar',
      name: 'shopcar',
      component: shopcar
      
    },
    {
      path: '/changerecord',
      name: 'changerecord',
      component: changerecord
      
    }
  ]

const router = new Router({
  routes
})

export default router